1, before the installation of the relevant descriptionEssential Packages and tools1 GCC 5. Starting at 6, you need to compile with g++ . 2 cmake 5. 5 beginning with CMake for project management, CMake requires more than 2.8 versions. 3 bison
1. When a string is used more frequently in a script and the string length is long, you should use a variable instead2. Variables are essential when using conditional statements3. When referencing the result of a command, replace it with a variable4.
Scene:The Redis keys value needs to be monitored, and monitoring scripts are executed using the Crond cycle. If there is an exception, notify by email.First, install the MSMTPDownload softwarewget http://sourceforge.net/projects/msmtp/files/msmtp/1.4
8.1 First Test "/etc/vsftpd", "/etc/hosts" is the directory, and through the "$?" Variable view returns a status value to determine the test result.[Email protected] ~]# [-D/ETC/VSFTPD][[email protected] ~]# echo $?0[Email protected] ~]#
Integer test: Do numeric size and equality comparisons$A-lt $B: Indicates whether it is less than$A-gt $B: Indicates whether it is greater than$A-le $B: is less than or equal to$A-gt $B: is greater than or equal to$A-eq $B: Indicates whether it is
Shell languageScript: Can run, a file, can implement some function (command stacking)[Email protected] ~]# vim/root/stu.shecho Hello WorldCat/etc/redhat-releaseUname-rHostnameIfconfig | Head-2[Email protected] ~]# chmod +x/root/stu.sh[Email
Http://guodayong.blog.51cto.com/263451/d-2 Guo Dayong's Blog1: Modify the configuration fileOpen the comment in front moduleload Ppolicy.lamodulepath/usr/lib/openldapmodulepath/usr/lib64/openldap also precede the database config with these two
Foreword: It is difficult to write all the code in sequential order when it is hard to satisfy the requirements when facing various lists and repeating tasks. Use other program control structures such as loops, branches, and more to make it easier
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.